gtkbox: Move private functions to private header
authorJavier Jardón <jjardon@gnome.org>
Sun, 2 Oct 2011 20:21:49 +0000 (21:21 +0100)
committerJavier Jardón <jjardon@gnome.org>
Sun, 2 Oct 2011 20:30:42 +0000 (21:30 +0100)
gtk/Makefile.am
gtk/gtkbbox.c
gtk/gtkbox.c
gtk/gtkbox.h
gtk/gtkboxprivate.h [new file with mode: 0644]
gtk/gtkdialog.c
gtk/gtkstatusbar.c

index 8a11903b2dd9041b73edd7861819dffbf7994f11..c82cb56f161d634c5987791f0144124c03ae7773 100644 (file)
@@ -390,6 +390,7 @@ gtk_private_h_sources =             \
        gtkappchooseronline.h   \
        gtkbindingsprivate.h    \
        gtkborderimageprivate.h \
+       gtkboxprivate.h         \
        gtkbuilderprivate.h     \
        gtkbuttonprivate.h      \
        gtkcellareaboxcontextprivate.h  \
index 57d87afabeb7ba9f3e3d09b4be8f031fc9dba84e..bdecd58b658df66d97ee90395f26f18f5d19c387 100644 (file)
@@ -53,6 +53,7 @@
 
 #include "gtkbbox.h"
 
+#include "gtkboxprivate.h"
 #include "gtkorientable.h"
 #include "gtktypebuiltins.h"
 #include "gtkprivate.h"
index b3b4db9518d4efa41b47080a55463e390606362f..f9792a8e1bc3b0958f5ded3bb90c092ad5070fd5 100644 (file)
@@ -80,6 +80,7 @@
 #include "config.h"
 
 #include "gtkbox.h"
+#include "gtkboxprivate.h"
 #include "gtkorientable.h"
 #include "gtksizerequest.h"
 #include "gtktypebuiltins.h"
index 906aa2e9d7dd9d546f7a788bfde9d17b0176edca..55a08e99341b08a7c2669922f899ce1ed542bb17 100644 (file)
@@ -109,13 +109,6 @@ void        gtk_box_set_child_packing   (GtkBox         *box,
                                          guint           padding,
                                          GtkPackType     pack_type);
 
-/* internal API */
-void        _gtk_box_set_old_defaults   (GtkBox         *box);
-gboolean    _gtk_box_get_spacing_set    (GtkBox         *box);
-void        _gtk_box_set_spacing_set    (GtkBox         *box,
-                                         gboolean        spacing_set);
-GList      *_gtk_box_get_children       (GtkBox         *box);
-
 G_END_DECLS
 
 #endif /* __GTK_BOX_H__ */
diff --git a/gtk/gtkboxprivate.h b/gtk/gtkboxprivate.h
new file mode 100644 (file)
index 0000000..9a4d463
--- /dev/null
@@ -0,0 +1,34 @@
+/* GTK - The GIMP Toolkit
+ *
+ * Copyright (C) 2011 Javier Jardón
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GTK_BOX_PRIVATE_H__
+#define __GTK_BOX_PRIVATE_H__
+
+G_BEGIN_DECLS
+
+
+void        _gtk_box_set_old_defaults   (GtkBox         *box);
+gboolean    _gtk_box_get_spacing_set    (GtkBox         *box);
+void        _gtk_box_set_spacing_set    (GtkBox         *box,
+                                         gboolean        spacing_set);
+GList      *_gtk_box_get_children       (GtkBox         *box);
+
+
+G_END_DECLS
+
+#endif /* __GTK_BOX_PRIVATE_H__ */
index ad32047a7156a04bd60a2eedde0361a100fc0bbb..076261c9002fb29ae4ccf00b512e5c6d004777fc 100644 (file)
@@ -35,6 +35,7 @@
 #include "gtklabel.h"
 #include "gtkmarshalers.h"
 #include "gtkbox.h"
+#include "gtkboxprivate.h"
 #include "gtkmain.h"
 #include "gtkintl.h"
 #include "gtkbindings.h"
index 3a7df1736e707040f2c61399eadfa7be0975698e..8548ec2f143843945133583826afd043f035b7a8 100644 (file)
 
 #include "config.h"
 
+#include "gtkstatusbar.h"
+
+#include "gtkboxprivate.h"
 #include "gtkframe.h"
 #include "gtklabel.h"
 #include "gtkmarshalers.h"
-#include "gtkstatusbar.h"
 #include "gtkwindow.h"
 #include "gtkprivate.h"
 #include "gtkintl.h"